ALL EDITORS V430 - NATIVE IMPORT/EXPORT, IMMEDIATE ACCOUNT FOLDER RENAMES
Based on the supplied All_Editors_V409_FROZEN_UI_SYSTEM_BEHAVIOR_GRAPH.zip.

INSTALL
1. Extract the complete ZIP into a new folder.
2. Close all BG2 windows. Run All Editors/SETUP_IN_GAME_ACCOUNTS.bat.
3. Select the BG2 installation and the BaldursGate2Online profile containing
   the Baldur.lua actually used by that game.
4. Start BG2 with your installed EEex / InfinityLoader, then create or log in
   to your account. Immediate renames require Lua io.open and os.rename.

ACCOUNT CREATION / LOGIN
Creates <profile>/<accountname>, for example:
  Documents/BaldursGate2Online/Drakhysys
Keeps the registered account's folder spelling. An existing account's former
characters/<accountname> folder moves to <profile>/<accountname> on its verified
login. If both locations already exist, neither is overwritten or merged.

IMPORT: ONE CLICK, ONE SYNCHRONOUS ACTION
  <accountname>/ -> characters/
  BG2's native OnImportCharacterFileButtonClick() runs.
  characters/ -> <accountname>/ immediately when that native call returns.
  The ordinary characters/ path is present again before the button action ends.

This follows the requested in-memory Import flow. It does not wait for an item
selection, Import Done, panel closing, a timer, a watcher, or another click.
Native Import list, item selection, Done and Back are the stock BG2 controls.
Character Import opens Character File directly, without the Saved Game route.

EXPORT
The native Export panel keeps its filename field, file list and Done/Cancel.
When Done is clicked, the account folder is temporarily named characters/.
BG2 writes the CHR/BIO there with its normal export callback, then characters/
is renamed back to <accountname>/ immediately in the same action. characters/
is present again before returning. The same cycle supports the first export,
additional exports, native overwrite and export from character creation.
The native Export-opening call also sees the account's existing files.

HOW EXISTING FOLDERS ARE PRESERVED
The existing characters directory is temporarily parked during the native
call and returned afterward. This recreates the characters path while retaining
any unrelated contents already there. The actual account directory is renamed;
its older characters, BIO files and subfolders are retained. No character copies,
generated character files, auto-backups or filename-prefix filters are added.
A shared directory lock prevents overlapping rename operations from overwriting
another account. Failed moves preserve the directories for recovery; setup, or
the exit watcher after every BG2 process has closed, can complete an interrupted
transaction. It never overwrites a conflicting directory.

SCOPE
Integrated into SETUP_IN_GAME_ACCOUNTS; no separate Import/Export launcher.
Existing UI editor protection, resource editors, multiplayer slot protections,
campaign flow and save files remain. Read-only source attributes are retained.

VERIFICATION
10 automated filesystem/Lua/installer checks passed, including first/repeated
export, native overwrite simulation, immediate Import restoration, account
separation, interrupted-rename recovery and repeat setup with a read-only UI.
The native Windows BG2 executable was not available for gameplay testing.
In particular, these tests do not prove BG2's internal import caching or native
asynchronous I/O timing; the immediate Import timing is the requested behavior.

Run: python test_v430_native_account_renames.py
